Fix behavior of with-temp-buffer-window (Bug#16816, Bug#17007).
authormartin rudalics <rudalics@gmx.at>
Sun, 16 Mar 2014 09:26:58 +0000 (10:26 +0100)
committermartin rudalics <rudalics@gmx.at>
Sun, 16 Mar 2014 09:26:58 +0000 (10:26 +0100)
commit0fecffd5127c0d55613c1f4883bef99a4154da56
treecc51bda5833c8d87666c390c5d0c8a8fa7a7348c
parentaac3abe7f91e98a1f321f9078f614628b4e5f206
Fix behavior of with-temp-buffer-window (Bug#16816, Bug#17007).

* window.el (with-temp-buffer-window): Don't make BUFFER-OR-NAME
current (Bug#16816, Bug#17007).
(with-current-buffer-window): New macro doing the same as
`with-temp-buffer-window' but with BUFFER-OR-NAME current.
* help.el (help-print-return-message): Warn in doc-string to not
use this in `with-help-window'.
(describe-bindings-internal): Call `describe-buffer-bindings'
from within help buffer.  See Juanma's scenario in (Bug#16816).
(with-help-window): Update doc-string.
* dired.el (dired-mark-pop-up):
* files.el (save-buffers-kill-emacs):
* register.el (register-preview): Use `with-current-buffer-window'
instead of `with-temp-buffer-window'.
* display.texi (Temporary Displays): Rewrite descriptions of
`with-output-to-temp-buffer' and `with-temp-buffer-window'.
* help.texi (Help Functions): Rewrite description of
`with-help-window'.
doc/lispref/ChangeLog
doc/lispref/display.texi
doc/lispref/help.texi
lisp/ChangeLog
lisp/dired.el
lisp/files.el
lisp/help.el
lisp/register.el
lisp/window.el